package biz.ezcom.design.pattern.interpreter;

/**
 * 音速解释器 
 */
public class SpeedExpression extends AbstractExpression {

	@Override
	public void execute(String key, double value) {
		//key = T
		String speed = "";
		if(value < 500){
			speed = "快速";
		}else if(value > 1000){
			speed = "快速";
		}else {
			speed = "中速";
		}
		System.out.print(speed + " ");
	}


}
